Optimal. Leaf size=72 \[ \frac{b x \sqrt{a^2+2 a b x^2+b^2 x^4}}{a+b x^2}-\frac{a \sqrt{a^2+2 a b x^2+b^2 x^4}}{x \left (a+b x^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0203706, antiderivative size = 72, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.077, Rules used = {1112, 14} \[ \frac{b x \sqrt{a^2+2 a b x^2+b^2 x^4}}{a+b x^2}-\frac{a \sqrt{a^2+2 a b x^2+b^2 x^4}}{x \left (a+b x^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1112
Rule 14
Rubi steps
\begin{align*} \int \frac{\sqrt{a^2+2 a b x^2+b^2 x^4}}{x^2} \, dx &=\frac{\sqrt{a^2+2 a b x^2+b^2 x^4} \int \frac{a b+b^2 x^2}{x^2} \, dx}{a b+b^2 x^2}\\ &=\frac{\sqrt{a^2+2 a b x^2+b^2 x^4} \int \left (b^2+\frac{a b}{x^2}\right ) \, dx}{a b+b^2 x^2}\\ &=-\frac{a \sqrt{a^2+2 a b x^2+b^2 x^4}}{x \left (a+b x^2\right )}+\frac{b x \sqrt{a^2+2 a b x^2+b^2 x^4}}{a+b x^2}\\ \end{align*}
Mathematica [A] time = 0.0074029, size = 35, normalized size = 0.49 \[ \frac{\left (b x^2-a\right ) \sqrt{\left (a+b x^2\right )^2}}{x \left (a+b x^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.042, size = 34, normalized size = 0.5 \begin{align*} -{\frac{-b{x}^{2}+a}{x \left ( b{x}^{2}+a \right ) }\sqrt{ \left ( b{x}^{2}+a \right ) ^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.00983, size = 18, normalized size = 0.25 \begin{align*} \frac{b x^{2} - a}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.49991, size = 20, normalized size = 0.28 \begin{align*} \frac{b x^{2} - a}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.257612, size = 5, normalized size = 0.07 \begin{align*} - \frac{a}{x} + b x \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.16587, size = 35, normalized size = 0.49 \begin{align*} b x \mathrm{sgn}\left (b x^{2} + a\right ) - \frac{a \mathrm{sgn}\left (b x^{2} + a\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]